package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import com.cnswhy.cloud.server.common.entity.enumeration.TransType;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "WalletTransDtlUpdateDTO", description = "")
public class WalletTransDtlUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @NotNull(message = "客户ID不能为空")
    private Long customerWalletId;
    /**
     * 钱包类型 #TransType{WITHDRAW:提现;CHARGE:充值;}
     */
    @ApiModelProperty(value = "钱包类型 #TransType{WITHDRAW:提现;CHARGE:充值;}")
    @NotNull(message = "钱包类型 #TransType{WITHDRAW:提现;CHARGE:充值;}不能为空")
    private TransType transType;
    /**
     * 交易系统订单号
     */
    @ApiModelProperty(value = "交易系统订单号")
    @NotEmpty(message = "交易系统订单号不能为空")
    @Length(max = 32, message = "交易系统订单号长度不能超过32")
    private String transOrderId;
    /**
     * 可用余额
     */
    @ApiModelProperty(value = "可用余额")
    @NotNull(message = "可用余额不能为空")
    private Long beginBal;
    /**
     * 可用余额
     */
    @ApiModelProperty(value = "可用余额")
    @NotNull(message = "可用余额不能为空")
    private Long dedBal;
    /**
     * 可用余额
     */
    @ApiModelProperty(value = "可用余额")
    @NotNull(message = "可用余额不能为空")
    private Long endBal;
}
